-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix isRTL check by loading the ltr string explilcitely #28279
Conversation
Size Change: +96 B (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well, fixes #28221 in my testing.
I've left a suggestion.
Co-authored-by: Jon Surrell <jon.surrell@automattic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issue in my testing.
Co-authored-by: Jon Surrell <jon.surrell@automattic.com>
Co-authored-by: Jon Surrell <jon.surrell@automattic.com>
Cherry-picked to both |
Hey @youknowriad, do you know if this change needs to be made in |
@noisysocks I think it's one of :
I added the label here so we don't forget. It's easy to test though: just run |
I dug into this some more. Even if the infinite recursion bug is fixed, we can still not use Our options are to keep the fix in this PR even after https://core.trac.wordpress.org/ticket/46089 is fixed or to move |
Removing the backport label here as we have https://core.trac.wordpress.org/ticket/52441 which tracks adding this to Core. |
closes #28221
closes #28252
Due to potential infinite loop, translations for i18n script are not being loaded. This PR makes sure we load the "ltr" string as an inline script.
The root issue is being tackled in https://core.trac.wordpress.org/ticket/46089
Testing instructions